<?php 
    $ten = "Bộ";
    $ctrl = "qlbo";
    $parent = "Lớp";

?>

<div id="content">
   <div id="title_content">Danh sách <?php echo $ten; ?></div>
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
        <?php echo $this->session->flashdata('error'); ?>
    </div>
    <?php endif; ?>
       		
            <table class="list" width="100%">
                <thead>
                    <tr>
                        
                        <th>Tên</th>
                        <th>Tên La tinh </th>
                        <th><?php echo $parent; ?></th>
                                                
                        <th colspan="2">Action</th>
                    </tr>
                </thead>
                <tbody>
                <?php 
                if(isset($sqlData) && !empty($sqlData)):
                foreach ($sqlData as $aRow): ?>
                    <tr>
                        <td><?php echo $aRow['ten']; ?></td>
                        <td><?php echo $aRow['ten_latin']; ?></td>
                        <td><?php echo $aRow['parent_name']; ?></td>
                        <td width="30px"><a href="<?php echo site_url($ctrl.'/sua_thong_tin/' . $aRow['id']) ?>" title="Sửa"><img src="<?php echo base_url() ?>assets/admin/images/modifier.png" alt="modifier"/></a></td>
                        <td width="30px"><a class="confirm_delete" href="<?php echo site_url($ctrl.'/xoa/' . $aRow['id']) ?>"><img src="<?php echo base_url() ?>assets/admin/images/supprimer.png" alt="supprimer"/></a></td>
                        
                    </tr>
                <?php endforeach; ?>
                <?php endif;?>
                </tbody>
            </table>
      <?php echo $pagination; ?>
           
     
    
</div>
<!--END content-->
